package com.chen.wow.day02.javaconfig;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(TeacherConfig.class)
public class StudentConfig {
	@Bean
	public Student student(Teacher teacher){
		Student student = new Student();
		student.setName("学生A");
		student.setTeacher(teacher);
		return student;
	}
}
